package com.vhans.core.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * oss配置属性
 *
 * @author ican
 */
@Data
@Configuration
public class OssProperties {

    /**
     * oss域名
     */
    @Value("${upload.oss.url}")
    private String url;

    /**
     * 终点
     */
    @Value("${upload.oss.endpoint}")
    private String endpoint;

    /**
     * 访问密钥id
     */
    @Value("${upload.oss.accessKeyId}")
    private String accessKeyId;

    /**
     * 访问密钥密码
     */
    @Value("${upload.oss.accessKeySecret}")
    private String accessKeySecret;

    /**
     * bucket名称
     */
    @Value("${upload.oss.bucketName}")
    private String bucketName;
}